<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('推荐')}:</label>
        <div class="col-xs-12 col-sm-8">
			{:build_select('row[recommend_id]', $recomList, $row.recommend_id, ['class'=>'form-control selectpicker', 'data-rule'=>'required'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('排序')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sort" min="0" class="form-control" name="row[sort]" type="number" value="{$row.sort}">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
			{if isset($row.id)}
            <button type="button" class="btn btn-danger btn-embossed" id="delete" data-type="{$Request.param.type}">{:__('取消推荐')}</button>
			{/if}
        </div>
    </div>
</form>
